<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<%@ include file="/common/taglibs.jsp" %>
<html>
<head>
    <meta charset="utf-8">
    <title>合约购售管理</title>

</head>
<style>
    /**内容超出 出现滚动条 **/
    .bui-stdmod-body {
        overflow-x: hidden;
        overflow-y: auto;
    }

</style>
<body>
<%@ include file="/common/head.builive.inc.jsp" %>
<div class="demo-content">
    <div class="row">
        <div class="span24">
            <form id="purchaseSaleSearchForm" class="form-horizontal" tabindex="0" style="outline: none;">
                <div class="row">
                    <div class="control-group span8">
                        <label class="control-label">用户名：</label>
                        <div class="controls">
                            <input type="text" name="userName" class="control-text">
                        </div>
                    </div>
                    <div class="control-group span8">
                        <label class="control-label">合约：</label>
                        <div class="controls">
                            <select name="contractId" class="contractId"></select>
                        </div>
                    </div>
                    <div class="control-group span8">
                        <label class="control-label">类型：</label>
                        <div class="controls">
                            <select name="type" class="type"></select>
                        </div>
                    </div>
                    <div class="control-group span8">
                        <label class="control-label">状态：</label>
                        <div class="controls">
                            <select name="state" class="state"></select>
                        </div>
                    </div>
                    <div class="form-actions span2">
                        <button id="btnSearch" type="submit" class="button button-primary">搜索</button>
                    </div>
                </div>

            </form>

        </div>
    </div>
    <div class="search-grid-container">
        <div id="purchaseSaleGrid">
        </div>
    </div>
</div>
<!-- 此节点内部的内容会在弹出框内显示,默认隐藏此节点-->

<div id="purchaseSaleEditFormDialogContent" style="display: none;">
    <form id="purchaseSaleEditForm" class="form-horizontal ">
        <div class="row">
            <div class="control-group span14">
                <label class="control-label">用户：</label>
                <input type="hidden" name="id"/>
                <div class="controls">
                    <select name="userId" class="userId" data-rules="{required:true}"></select>
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">合约：</label>
                <div class="controls">
                    <select name="contractId" class="contractId1" data-rules="{required:true}"></select>
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">单价：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text"
                           data-rules="{number:true} {required:true}"
                           name="price">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">总算力：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text"
                           data-rules="{number:true} {required:true}"
                           name="totalNum">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">剩余算力：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text"
                           data-rules="{number:true} {required:true}"
                           name="remainderNum">
                </div>
            </div>
            <div class="control-group span9">
                <label class="control-label">类型：</label>
                <div class="controls">
                    <select name="type" class="type1"></select>
                </div>
            </div>
            <div class="control-group span9">
                <label class="control-label">状态：</label>
                <div class="controls">
                    <select name="state" class="state1"></select>
                </div>
            </div>
        </div>
    </form>

</div>
<script src="js/purchaseSale.js"></script>
</body>
</html>